<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="2.js"></script>
  </head>
  <body>
    <script>
      let $qr = new Qr()
      $res = $qr.make('http://yahoo.com')
      console.log($res)
    </script>
  </body>
</html>
